package com.cizzy.user.feign;

import com.cizzy.user.common.Result;
import com.cizzy.user.entity.dto.VideoDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author 51755
 */
@FeignClient(name = "video-server-service", fallback = VideoFeignFallback.class)
public interface VideoFeign {

//    @RequestMapping("/video/upload")
//    public String upload(String fileName, String fileUrl);

    @RequestMapping(value="/video/getVideoListByUserId/{id}", method = {RequestMethod.GET})
    Result<List<VideoDTO>> getVideoListByUserId(@PathVariable("id") Long id);
}
